import React, { Component } from "react";

function Item(props) {
  const { id, name, done } = props;

  return (
    <li>
      <label>
        <input type="checkbox" checked={done} />
        <span>{name}</span>
      </label>
      <button>删除</button>
    </li>
  );
}

export default Item;
